// dlg.txt

//MK Edit

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 51;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "This high valley is, somehow, sheltered from the cold. It is actually slightly warm and green. It's even pleasant enough to support some rabbits. You can see them watching you quietly from the underbrush.";
	text2 = "This is a familiar enough sight. It's a mine of the High Litha, run by one of the many clans of the Rokaj. However, no workers are in sight. Smoke rises from the chimney of the house to the west, but there are no other signs of human occupation.";
	text3 = "As you approach the clan hall, you hear a quiet hiss. You look around, but you aren't sure where it came from.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0 && gf(51,14) < 3;
	text1 = "You enter the cinnabar mines. Again, there are no humans here. As you enter, once again, you hear quiet hissing. You look around, but nobody is visible.";
	text2 = "Odd.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0 && gf(51,14) >= 3;
	text1 = "You enter the cinnabar mines. Again, there are no humans here. As you enter, once again, you hear quiet hissing. You look around, but nobody is visible.";
	text2 = "Remembering what Angelique told you, you hiss back. Nothing happens. You feel slightly embarrassed.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0 && gf(51,14) >= 3;
	text1 = "The cave suddenly grows frigid. There are bones scattered everywhere. Old bones, crumbling underfoot. Some of them look human. The hissing returns and grows louder.";
	text2 = "Your hair stands on end. You hear another hiss, so loud and close that it makes your ribcage vibrate. Then you realize that the sound is coming from you. You force yourself to stop, but it is too late.";
	text3 = "The ghostly hissing stops. Then the real hissing starts. It's coming from all around you. The spirits haunting this mine have been drawn forth.";
	code =
		sf(this_town,4,1);
		activate_hidden_group(2);

		set_terrain(1,35,5,0);
		set_terrain(1,36,5,0);
		set_terrain(1,37,5,0);
		set_terrain(1,35,6,0);
		set_terrain(1,36,6,0);
		set_terrain(1,37,6,0);
		
		set_act_at_dist(30002,1);
		set_act_at_dist(30003,1);
		set_act_at_dist(30004,1);
		set_act_at_dist(30005,1);
		
		set_boss_level(5121,1);
		set_boss_level(5136,1);

		set_attack_range(30004,3);

	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "The air in this cave is musty and icy cold. No intruders have come down here for many, many years.";
	text2 = "In the dark, you hear hissing and the sound of scales moving over stone. You feel yourself called forward by an old, malevolent power.";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0 && gf(51,14) == 6;
	text1 = "You return to the depths of the mine, where you felt compelled to call the serpents. Once again, you hear a chorus of ghostly hisses, echoing through the corridors.";
	text2 = "A feeling of panic fills you. The mine becomes like a labyrinth. You lose track of all directions, and the shadows crowd in upon you.";
	text3 = "With effort, you regain control of your mind. Your senses return to normal. You are still standing in a mine tunnel. No beasts have joined you.";
	text4 = "However, something seems different.";
	code =
		sf(this_town,6,1);
		set_terrain(1,16,12,0);
		set_terrain(1,17,12,0);
		set_terrain(1,16,11,0);
		set_terrain(1,17,11,0);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You meet Elspeth. She is a worried, middle-aged woman. When you entered, she immediately began to prepare tea and a light meal.";
	text2 = "At least she is far less anxious than when you first met her.";
	text3 = "_We welcome guests here, even in these miserable times. Go speak with my husband. I will join you shortly._";
	text4 = "_We welcome guests here, especially those who have helped us as much as you have. Go speak with my husband. I will join you shortly._";
	code =
		if (gf(51,11) > 0)
			rs(2);
		if (gf(51,12) > 0)
			rs(3);
			else rs(4);
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "An enormous serpent uncoils and rises up from the magic circle in this cave. She is a full thirty feet long, with shining blue scales. Her head is humanlike, with twisted, grotesque features. She looks at you with loathing.";
	text2 = "She does not speak. Instead, you can sense her rage and hunger. For centuries, she has slept down here. Now, at last, the noise of the shades of the High Litha has awakened her. She's been dormant for a long time.";
	text3 = "Now she is ready to feed.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "The wounded Ice Wyrm shudders and howls in rage. She stops moving and begins to concentrate. Waves of cold flow off of her. Her howls tear at your sanity. Only your long training, received from Haven's best teachers, gives you a chance of maintaining your self-control.";

begintalknode;
	tag = 16;
	condition = gf(51,4) > 0 && gf(51,11) == 0;
	text1 = "As you stumble out of the mine, the hissing grows quiet. You begin to regain a bit of calm. The mine lashed you with its curse, and you emerged. You can sense that much of the power of the place has been spent.";
	text2 = "Perhaps Angelique's clan will be safe again.";
	code =
		sf(51,11,1);
	break;
	
begintalknode;
	tag = 17;
	condition = 1;
	text1 = "The Ice Wyrm gives a final, furious shriek. Then it suffers the fate of all those who challenge Haven. The huge serpent turns to ice. A final blow shatters it. The fragments fall to the ground with a satisfying, crystalline crunching noise.";
	text2 = "After long centuries, the curse on this place has been lifted.";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "Welcome back.";
	text2 = "The mines are open.";
	text3 = "We are grateful.";
	text4 = "Coglins will speak.";
	text5 = "Angelique was right.";
	text6 = "What a horror.";
	text7 = "The wyrm is dead!";
	action = SPEECH_BUBBLE;
	code =
		cs();
		if (gf(51,12) == 0)
			as(get_ran(1,1,5));
			else as(get_ran(1,3,7));
	break;

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Coglins

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "This large clan hall is currently only occupied by one small family. You approach a middle-aged man of the Litha. He is armed with a long blade, which stays sheathed at his side. He has a haunted look, and you don't think he's slept for some time.";
	text2 = "He gives you a little bow and calls for his wife to bring some tea. _Welcome, traveler. I am Coglins Lapin. I speak for our clan here. We get few visitors. I am glad you are from Haven and not some raider of the Dhaga._";
	text5 = "Coglins and Elspeth sit with you at the table, staying warm by the fire. In the High Lithan way, he is very quiet. He sits and taps his foot nervously, waiting for you to break the silence.";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(51,13) == 0;
	question = "_I am [P] [N] of Haven, on a diplomatic mission to your land._";
	text1 = "The man's wife, Elspeth, brings tea and introduces herself. All of you sit and drink it. _It is strange that you see us as worthy of the honor of a visit. Still, I welcome it. It has been a troubled time._";
	code =
		sf(51,13,1);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(51,13) == 0;
	question = "_I'm just passing through._";
	text1 = "The man's wife, Elspeth, brings tea and introduces herself. All of you sit and drink it. _Well, enjoy the warmth. Though we are tired, we are glad to have our solitude broken. It has been a troubled time._";
	code =
		sf(51,13,1);
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(51,13) == 0 && gf(49,17) == 1;
	question = "_I met Trader Umita in Etzalam. She sent me._";
	text1 = "The man's wife, Elspeth, brings tea and introduces herself. All of you sit and drink it. _Umita sent you? That is very good news. We thought we were forgotten. It has been a troubled time._";
	code =
		sf(51,13,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(51,13) > 0;
	question = "_Tell me about this mine._";
	text1 = "_Our clan is mostly nomads of the high glaciers, but we have a claim on this mine. It produces quicksilver. Not a lot, but enough to help us be prosperous._";
	text2 = "_It has been worked for many years. It has long kept its old name: The Pit of the Ice Wyrm._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Where is your clan?_";
	text1 = "_They left. It is part of our troubles. There are ... strange forces here. They are brave, but they do not want to face ... spirits._";
	text3 = "_They are returning. They are shamed that a Havenite helped us while they fled. They will not be driven off again._";
	action = DEP_ON_SDF 51 11 0;
	
begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_The Pit of the Ice Wyrm?_";
	text1 = "Coglins says, _It is an old name, based on legend._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_What sort of legend?_";
	text1 = "Coglins is embarrassed to speak about it, but Elspeth takes over. _An old tale. These mountains are full of them. We have lots of history up here. Once, a drake or some such lived here. Then it left or was driven off. The Ro claimed these caves, but the old name stuck._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(51,12) == 0;
	question = "_Is the legend true?_";
	text1 = "They both shrug. She says, _Maybe? All of our tales have some seed of truth, we think._";
	text2 = "Coglins says, _Normally, we would not be concerned. However, our daughter, Angelique, has been disturbed. Visions. Dreams. She has always been a mysterious child, but ... then our clan heard hisses in the tunnels._";
	text3 = "They look at each other for a moment. Finally, Elspeth nods. Coglins says, _If you want, you may talk to our daughter. She could use the company, and you might find it interesting._";
	code =
		if (gf(51,14) == 0)
			sf(51,14,1);
			else rs(3);
	break;
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(51,12) > 0;
	question = "_And the legend was true._";
	text1 = "_It was. And now it is history. Thanks to you._";

begintalknode;
	state = 10;
	nextstate = 14;
	condition = gf(51,10) == 0;
	question = "_There are few people here._";
	text1 = "_Yes. The mines became haunted. When we worked them, we heard hissing. The High Lithans are brave, but we fear our spirits. Our clan left to hunt and explore._";

begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_But you remain._";
	text1 = "_Yes. Some of us had to stay to maintain our claim. More than that, we stayed for the sake of Angelique._";
	
begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_Angelique?_";
	text1 = "Elspeth says, _Our daughter. She has always been a strange one. Sensitive. She sees and hears what we don't. We live here because it is warm for these mountains. Her rabbits can survive here. They comfort her._";
	text2 = "Finally, Elspeth nods. Coglins says, _She is troubled, now. The spirits that scared off our clan ... she heard them first. She hears them still. Perhaps you can speak with her? It might comfort her._";
	code =
		if (gf(51,14) == 0)
			sf(51,14,1);
			else rs(2);
	break;

begintalknode;
	state = 10;
	nextstate = 16;
	condition = gf(51,14) > 0;
	question = "_Tell me about Angelique._";
	text1 = "Coglins says, _She is our only child. She is a sweet girl. The High Litha is a harsh land, though. She wants to keep to herself. Listen to spirits. Tend to her rabbits. We love our land, but it is hard on a child like her._";
	text2 = "_This peaceful vale was good for her. Then she became ... troubled._";
	code =
		if (gf(51,12) > 0)
			rs(2);
	break;
	
begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_Rabbits?_";
	text1 = "_She loves them. Children choose for themselves what they love, and parents must be content to follow._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_Why did you come here?_";
	text1 = "_Our clan built up enough wealth to buy a claim. We chose this one because it provided a peaceful home for us. It was a place where Angelique could be herself._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_She talks to spirits?_";
	text1 = "Coglins stays quiet. Elspeth says, _The High Litha is full of spirits. She might have made a powerful and influential Misttalker, but our dear Angelique was not made for battle._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = gf(51,11) == 0;
	question = "_She is troubled._";
	text1 = "_She started hearing things. Whispers. Hissing. At all hours. Our clan ignored her. Then they started to hear the hissing in the mines._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = gf(51,11) > 0;
	question = "_Is she still troubled?_";
	text1 = "_At first, she seemed well. Then the hissing returned, louder than ever. We are concerned._";
	text3 = "_At last, our child is at peace._";
	action = DEP_ON_SDF 51 12 0;
	
begintalknode;
	state = 10;
	nextstate = 17;
	condition = gf(51,11) > 0 && gf(51,13) < 3;
	question = "_I was attacked by snakes in your mine._";
	text1 = "You tell them the tale. They are fascinated and horrified. _I promise, we never doubted Angelique. We knew those spirits were here. We just couldn't find out how to face them. Thanks to you, our child has hope._";
	text2 = "_We are truly grateful._";
	code =
		sf(51,13,3);
	break;
	
begintalknode;
	state = 17;
	nextstate = 10;
	condition = 1;
	question = "_A reward would be nice._";
	text1 = "_Of course. Trader Umita, in Etzalam, trades on our behalf. Speak with her, and she will deliver you a generous bounty in quicksilver._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(51,13) == 3;
	question = "_Do you need more help?_";
	text1 = "_It is too early to see. We will have to see how poor Angelique reacts. She is not at peace yet._";

begintalknode;
	state = 10;
	nextstate = 18;
	condition = gf(51,13) == 4 || gf(51,13) == 5;
	question = "_How are the mines?_";
	text1 = "Elspeth shakes her head and wipes her eyes. Coglins says, in a grim voice, _We thought they were cleansed of dark spirits. We were wrong. Angelique's visions are back. Worse than ever._";
	code = 
		sf(51,13,5);
	break;
	
begintalknode;
	state = 18;
	nextstate = -1;
	condition = 1;
	question = "_How so?_";
	text1 = "_She has nightmares. Wakes up screaming. Says the hissing is still there. It always sounds like it might be words, but she can't understand them. The attacks happen all the time._";
	text2 = "_You may talk to our poor, unfortunate daughter if you wish. She needs help, and we can pay in quicksilver._";

begintalknode;
	state = 10;
	nextstate = 19;
	condition = gf(51,12) > 0 && gf(51,13) < 6;
	question = "_The Ice Wyrm was real. I killed it._";
	text1 = "You tell them the tale. They are both awed and full of horror. _All these years ... The tales were real ... And we sat on top of that thing. Yet, you saved us. Haven saved us. Perhaps our daughter can know some peace._";
	text2 = "_We will spread word of what you did. The High Litha will learn what you did for our people._";
	code =
		sf(51,13,6);
		ro_faction(1);
		inc_flag(80,5,-1);
	break;

begintalknode;
	state = 19;
	nextstate = 20;
	condition = 1;
	question = "_What do you think will happen now?_";
	text1 = "_We will gather our clan. Work must be done. Debts must be paid. Supplies must be gathered. Hard times are coming, and we all must prepare._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_And your quicksilver?_";
	text1 = "_Speak with Trader Umita in Etzalam. We will make sure that you get quicksilver. Thank you so much for your aid. Now please excuse us. We need to check in on our daughter._";
	action = END_TALK;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(51,13) == 6;
	question = "_How are you faring?_";
	text1 = "_As well as we can. Angelique is more at peace, but the times are troubled. We truly wish you good fortune, [P]. Now excuse us. Danger is coming. We have much to prepare._";
	action = END_TALK;
	
// Angelique Lapin

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "This is the bedroom of a young woman of the High Litha. It is cluttered with books, stuffed animals, and other amusements. She sits cross-legged on a carpet in the middle. When you enter, she is startled. She takes whatever she was playing with and hides it under her dress.";
	text2 = "She stutters, _I ... I am ... I'm Angelique Lapin. I don't know you. I don't have visitors. Excuse me._";
	text5 = "Angelique Lapin continues to sit on her rug. You have to sit down on the floor to see her eye to eye. She still has several items hidden under her dress.";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(51,14) <= 1;
	question = "_What were you playing with?_";
	text1 = "_Nothing. I don't have visitors. I am shy. Sorry. My parents can give you tea before you go. Excuse me._";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(51,14) <= 1;
	question = "_I am [P] [N] of Haven._";
	text1 = "_Oh. All right. I ... I don't know how to talk to royalty. Sorry. My parents can give you tea before you go. Excuse me._";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(51,14) == 1 && gf(51,13) > 0;
	question = "_Your father said that you are troubled?_";
	text1 = "There is a long silence. She pushes something out from under her dress. You see that it is the head of a brown stuffed rabbit. Angelique looks down at it, then nods. _Yes, I can talk to you._ The stuffed rabbit hides again.";
	text2 = "_I'm sorry. This is a lonely place. I'm glad for a tiny bit of company._";
	code =
		sf(51,14,2);
	break;
	

begintalknode;
	state = 40;
	nextstate = 41;
	condition = gf(51,14) > 1;
	question = "_Tell me about yourself._";
	text1 = "_I am ... me. I help the clan, I tend to my rabbits, and I help my parents. They worked hard to find this place for me. I am grateful._";
	text2 = "_I wish I was not such a bother for them. Still, the things I hear. I do hear them._";
	code =
		if (gf(51,12) > 0)
			rs(2);
	break;
	
begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_You like rabbits?_";
	text1 = "_I always have. They can be pests, yes, but they are peaceful and gentle. This little valley is one of the few places in the mountains they can live in._";
	text2 = "_I tend to them. The clan allows them, as long as I help keep our crops fenced off._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_What were you playing with?_";
	text1 = "She giggles. She pushes out a black stuffed rabbit. Then she hides it again. _They keep me company, but they are shy._";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about your parents._";
	text1 = "_Coglins and Elspeth are so good to me. I can be such trouble, and they are so patient._";

begintalknode;
	state = 40;
	nextstate = 42;
	condition = gf(51,14) > 1;
	question = "_You live here with your clan?_";
	text1 = "_Yes, when the clan is here. They left. I told them about what I heard, and they didn't believe me. Then they heard it, and they fled. Leaving us alone._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of them?_";
	text1 = "_I love them. They try to love me. Still ... I am not a normal Ro. I do not fit in well._";

begintalknode;
	state = 42;
	nextstate = 43;
	condition = 1;
	question = "_You don't fit in?_";
	text1 = "_I am not brave. High Lithans are so fierce. So determined. And I ... I don't want to fight. I don't want to ... a lot of things. Sometimes, I think I should not live here._";

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_Where should you live?_";
	text1 = "_In the Low Dhaga, they take all their women and hide them away all the time. I think that would suit me more._ An easy thing to say. Perhaps harder to live.";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = gf(51,11) == 0;
	question = "_Why did your clan go?_";
	text1 = "_I hear things. I don't talk about them, because I am ignored._";
	text2 = "She shudders. _Then I started hearing the hissing. I told my clan. They laughed._";
	text3 = "_Then they started hearing it too. In the mines. High Lithans respect and fear shades. They fled. My family stayed alone._";
	
begintalknode;
	state = 42;
	nextstate = -1;
	condition = gf(51,11) > 0;
	question = "_And now your clan is returning._";
	text1 = "_Yes, slowly. They show me more respect now. That is nice._";

begintalknode;
	state = 40;
	nextstate = 50;
	condition = gf(51,14) > 1 && gf(51,11) == 0;
	question = "_Your father said that you are troubled._";
	text1 = "She pulls a white, stuffed rabbit out from under her dress and hugs it to her chest. _I hear spirits. They hiss. First, it came to my dreams. Then I started to hear it all the time. I told my clan._";
	text3 = "_There are legends about this mine. It had serpents in it once, they say. Even I thought it was just a story. Then ..._ She cocks her head to one side.";
	text4 = "_There!_ Her voice grows loud and shrill. _All around us! Snakes! Hissing everywhere!_ You don't hear anything.";
	
begintalknode;
	state = 50;
	nextstate = 44;
	condition = 1;
	question = "_I can't hear them._";
	text1 = "After a moment, she calms down. She clutches the rabbit to her chest and whispers calming words to it. _There. The hissing fades. They've gone, for now._";

begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_Do you think the snakes are real?_";
	text1 = "_I don't know. I know the hissing is real. I know there are spirits. I can feel them. All the time. I just don't know what they are._";

begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_Is there any way I can help?_";
	text1 = "She whispers something to her bunny. Then she makes it nod with her hand. It hides back under her dress. _You can go into the mines. I think, if you find the right place to challenge the spirits, they will emerge._";
	text2 = "_I think they are proud and brave. They will come if you are not afraid._";
	text3 = "_That is all I can say. Sorry. Hearing the hissing ... it drains me. I must rest._ She slumps to the side and falls asleep on the carpet.";
	action = END_TALK;
	code =
		if (gf(51,14) < 3)
			sf(51,14,3);
	break;
	
begintalknode;
	state = 40;
	nextstate = 45;
	condition = gf(51,14) == 3 && gf(51,11) > 0;
	question = "_I called out the snakes. They are gone now._";
	text1 = "You tell her the tale. She brings out three stuffed rabbits to listen with her. Then she hides them again. She seems strangely unconcerned. _You did a kind thing for me. My parents will reward you._";
	text2 = "_Perhaps things will be better now._";
	code =
		sf(51,14,4);
	break;
	
begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_You aren't sure?_";
	text1 = "_The hissing is quiet now. Yet ... I still feel ... something. At least there is silence at this moment. I can properly sleep. I should do it while I can._";
	text2 = "She slumps to the side and falls asleep on the carpet.";
	action = END_TALK;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = gf(51,14) == 4;
	question = "_How are you feeling?_";
	text1 = "_Well, for now. While there is peace, I rest as much as I ... I ... Excuse me. I feel rest coming._";
	text2 = "She slumps to the side and falls asleep on the carpet.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = 46;
	condition = gf(51,14) == 5;
	question = "_How are you doing?_";
	text1 = "She shakes her head. A tear runs down her face. _Oh, I wish I could tell my parents that all is well. Yet ... The hissing. It is back._";
	text2 = "_And my pets ..._";

begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_How are the rabbits?_";
	text1 = "_They are afraid. The little dears. I bring them food, and they run from me._";

begintalknode;
	state = 46;
	nextstate = 47;
	condition = 1;
	question = "_What do you hear?_";
	text1 = "_The hissing is worse than before. Angrier. It's trying to ... to ... tell me something! Something bad!_";
	text2 = "_Nobody wants to hear it, but they need to listen. A serpent is here._";
	code =
		if (gf(51,14) < 6)
			sf(51,14,6);
	break;

begintalknode;
	state = 47;
	nextstate = -1;
	condition = 1;
	question = "_How can I call the serpent?_";
	text1 = "She starts to shake. Her voice is strange and deep. _It's there. It is lonely. It wants company. Go to where you challenged it before. It wants you._";
	text2 = "She sits and shudders silently. You try to talk to her, but she only shakes her head in response.";
	action = END_TALK;

begintalknode;
	state = 47;
	nextstate = -1;
	condition = 1;
	question = "_I'm not sure I want to do this._";
	text1 = "She starts to shake. When she responds, her voice is strange and deep. _You must finish what you started. The serpent is lonely. It wants company. Go to where you challenged it before. It wants you._";
	text2 = "She sits and shudders silently. You try to talk to her, but she only shakes her head in response.";
	action = END_TALK;
	
begintalknode;
	state = 40;
	nextstate = 48;
	condition = gf(51,14) < 7 && gf(51,12) > 0;
	question = "_The ice wyrm was real. Now it is dead._";
	text1 = "You start to tell her the tale, but she says, _I don't want to hear it. At last, there is peace. Silence, thanks to you. I only want to enjoy it._";
	code =
		if (gf(51,14) < 7)
			sf(51,14,7);
	break;

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_How are the rabbits doing now?_";
	text1 = "_My little dears are happy again._ She pulls out her stuffed rabbits and lines them up in front of her. _They love peace like I do. Thank you, [P]. You are a hero._";
	text2 = "_Please excuse me, though. At last, I can rest again._ She lies down, curls up around her rabbits, and goes to sleep.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = 49;
	condition = gf(51,14) == 7;
	question = "_How are you doing, Angelique?_";
	text1 = "_I am better. My rabbits are better. The mines are quiet again. My parents don't need to worry about me anymore._";
	text2 = "_Yet, they are still worried._";

begintalknode;
	state = 49;
	nextstate = -1;
	condition = 1;
	question = "_Why are they worried?_";
	text1 = "_They think a war is coming. This would be very bad. I will talk to them about it soon. We will all need to help and take part._";
	text2 = "_Thank you again, my hero. No matter what happens, I will always be grateful._";
	action = END_TALK;

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				